package com.model.service;

import com.entity.User;
import com.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class UserService {
    @Resource
    UserMapper userMapper;

    public String listByUsername(String username){
        return userMapper.listByUsername(username);
    }

    public String listName(String username){
        return userMapper.listName(username);
    }

    public void insertUser(User user)throws Exception{
        userMapper.insertUser(user);
    }
}
